//
//  MFMessageComposeViewController+extension.m
//  SXH
//
//  Created by 龚啸 on 16/3/1.
//  Copyright © 2016年 lyss. All rights reserved.
//

#import "MFMessageComposeViewController+extension.h"

@implementation MFMessageComposeViewController (extension)
-(void)setRightItem
{
    [[[[self viewControllers] lastObject] navigationItem] setRightBarButtonItem:[[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStylePlain target:self action:@selector(back)]];
}
-(void)back
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
@end
